package contract

import (
	"chainmaker.org/chainmaker/smarteditor/conf"
	"path/filepath"
)

//IsContractDirectory if directory is contract return true
func IsContractDirectory(uid, path string) bool {
	workspace := conf.GetUserWorkspace(uid)
	return filepath.Dir(filepath.Dir(path)) == workspace
}
